home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The X-Philes (2nd Revision)
/
The X-Philes Number 1 (1995).iso
/
xphiles
/
hp48_2
/
unit.obj
/
comp.sys.handhelds_3385_000000.msg
Wrap
Internet Message Format
|
1991-04-12
|
2KB
Path: en.ecn.purdue.edu!noose.ecn.purdue.edu!samsung!zaphod!unix.cis.pitt.edu!dsinc!ub!acsu.buffalo.edu
From: cloos@acsu.buffalo.edu (James H. Cloos)
Newsgroups: comp.sys.handhelds
Subject: On Unit Objects
Message-ID: <54397@eerie.acsu.Buffalo.EDU>
Date: 15 Jan 91 02:01:11 GMT
Sender: news@acsu.Buffalo.EDU
Organization: State University of New York @ Buffalo
Lines: 40
Nntp-Posting-Host: lictor.acsu.buffalo.edu
Hello all. Hope you had a good holiday season.
(Hmmm, after this I think that the linked array will be the only
object type whose format is unknown (to the net at large).)
Before I proceed, thanks to Jan & Derek for compiling their internals
lists, 'frechett@boulder' for posting Derek's to c.s.h, and Jake for
combining it with Jan's list. Without Derek's list in specific, I
would not have figured this out as quickly.
Anyway, it turns out that Unit objects are stored just like lists,
programs, and algebraics (aka Symbolics). The format looks like this:
UNIT real unit1 _ ;
(where 'unit1' would be a string) for a simple un-prefixed unit, such
as 2_m. The '_' though, is just an empty list, but a specific empty
list.
The prefixes are implemented by combining a CHARACTER with the string
representing the main unit.
(This room is closing shortly, so I'll be blunt below. Questions are
gladly answered ;)
The five list's addresses What they do
------------ ------------
10b72 ^ aka power
10b5e * aka mult
10b68 / aka divide
10b86 _ aka combine real to units
10b7c combine character prefix to unit string
I have to go now, so I'll post a followup tomorrow with some more
info, but this should whet your appatite 'till then. ;)
-JimC
--
James H. Cloos, Jr. Phone: +1 716 673-1250
cloos@ACSU.Buffalo.EDU Snail: PersonalZipCode: 14048-0772, USA
cloos@ub.UUCP Quote: <>